package com.mjw.tender.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class CommentDto implements Serializable {
    private Long id;//主键id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;//评论时间
    private Long articleId;//文章的id
    private Long fromId;//评论者id
    private String fromName;//评论者昵称
    private String fromAvatar;//评论者头像
    private Integer likeNum;//点赞人数
    private String content;//评论内容

    private String articleName;//文章名
    private boolean likeFlag;//当前用户是否已经点赞该评论  //序列化有坑？？？转json is不见了

    private List<SecondCommonDto> reply;
}
